package principal;
import java.text.*;
import java.util.*;

import javax.swing.JOptionPane;

public class DiaDaSemana {

public static void main(String args[]) {

DateFormat dfmt = new SimpleDateFormat("EEEE, d 'de' MMMM 'de' yyyy");
Date hoje = Calendar.getInstance(Locale.getDefault()).getTime();
System.out.println(dfmt.format(hoje));

JOptionPane.showMessageDialog(null, dfmt.format(hoje));

}
} 